package com.qinggeng.project.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import lombok.Data;
import com.qinggeng.framework.web.domain.BaseEntity;

/**
 * 订单配送员对象 orders_courier
 *
 * @author qinggeng
 * @date 2020-06-17
 */
@Data
public class OrdersCourier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单配送员ID */
    private Long ordersCourierId;

    /** 配送员ID */
    @Excel(name = "配送员ID")
    private Long courierId;

    /** 头像地址 */
    @Excel(name = "头像地址")
    private String avatar;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long ordersId;

    /** 配送状态 10=抢单成功 20=确认取货 30=确认送达 */
    @Excel(name = "配送状态 10=抢单成功 20=确认取货 30=确认送达")
    private String status;


    private Float lng;

    private Float lat;

    public OrdersCourier() {
    }

    public OrdersCourier(Courier courier) {
        this.courierId=courier.getUserId();
        this.avatar=courier.getAvatar();
        this.phone=courier.getPhonenumber();
        this.nickName=courier.getNickName();
        this.lng=courier.getLng();
        this.lat=courier.getLat();
    }

    public Long getOrdersCourierId() {
        return ordersCourierId;
    }

    public void setOrdersCourierId(Long ordersCourierId) {
        this.ordersCourierId = ordersCourierId;
    }

    public Long getCourierId() {
        return courierId;
    }

    public void setCourierId(Long courierId) {
        this.courierId = courierId;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Long getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(Long ordersId) {
        this.ordersId = ordersId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Float getLng() {
        return lng;
    }

    public void setLng(Float lng) {
        this.lng = lng;
    }

    public Float getLat() {
        return lat;
    }

    public void setLat(Float lat) {
        this.lat = lat;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ordersCourierId", getOrdersCourierId())
            .append("courierId", getCourierId())
            .append("avatar", getAvatar())
            .append("phone", getPhone())
            .append("nickName", getNickName())
            .append("ordersId", getOrdersId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
